import 'antd/dist/reset.css';
import { Suspense } from 'react';
import { useRoutes } from 'react-router-dom';
import './App.css';
import routes from "./router/index";

function App() {

  return (
    <div className="App">
      <Suspense fallback={<h1>loading...</h1>}>
          {
            useRoutes( routes )
          }
      </Suspense>
    </div>
  );
}

export default App;
